package com.qidian.mes.util.config;

import com.qidian.mes.util.interceptor.LoginInterceptor;
import com.qidian.mes.util.jwt.JWTUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author 戴着假发的程序员
 * @Company 起点编程
 * @Time 2023/11/3 10:05
 * @Description
 */
@Configuration
public class CommonAutoConfig {

    @Bean
    public WebMvcConfig webMvcConfig(){
        return new WebMvcConfig();
    }
    @Bean
    public LoginInterceptor loginInterceptor(){
        return new LoginInterceptor();
    }
    @Bean
    public JWTUtil jwtUtil(){
        return new JWTUtil();
    }
}
